using System;
using System.Collections.Generic;
using System.Text;

namespace CasinoServer.BusinessEntities
{
    public class tmpPokerChair
    {
        private int chairNumberField;
        private bool TableOwnerChairField;
        private bool isDealerField;
        private bool isPlayingField;
        private int? PlayerIdField;

        public tmpPokerChair(int chairNumber)
        {
            this.chairNumberField = chairNumber;
            TableOwnerChairField = false;
            isDealerField = false;
            isPlayingField = true;
        }

        public int ChairNumber
        {
            get { return chairNumberField; }
        }

        public bool isPlaying
        {
            get { return isPlayingField; }
        }

        public bool isTableOwnerChair
        {
            get { return TableOwnerChairField; }
        }

        public bool isDealerChair
        {
            get { return isDealerField; }
        }

        public int MakeThisOwnerChair()
        {
            TableOwnerChairField = true;
            return chairNumberField;
        }

        public int MakeThisDealerChair()
        {
            isDealerField = true;
            return chairNumberField;
        }

        public void UnMakeThisDealerChair()
        {
            isDealerField = false;
        }

        public int? PlayerId
        {
            get { return PlayerIdField; }
        }

        public void SitDown(int idPlayer)
        {
            this.PlayerIdField = idPlayer;
            this.isPlayingField = false;
        }

        public void StandUp()
        {
            this.isPlayingField = true;
            this.PlayerIdField = null;
        }
    }
}
